package com.ruoyi.bearing.controller;


import com.ruoyi.bearing.domain.BearingBasicInfo;
import com.ruoyi.bearing.domain.ComponentConditions;
import com.ruoyi.bearing.domain.ComponentType;
import com.ruoyi.bearing.service.IBearingBasicInfoService;
import com.ruoyi.bearing.service.ZxycService;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.exception.flask.FlaskException;
import com.ruoyi.common.utils.poi.ExcelUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 部门Controller
 *
 * @date 2023-06-30
 */
@RestController
@RequestMapping("/bearing/zxyc")
public class ZxycController extends BaseController {
    @Autowired
    private ZxycService zxycService;

    /**
     * 获取元器件类型
     */
    @GetMapping("/getyqjList")
    public List<ComponentType> getyqjList() {
        List<ComponentType> componentType = zxycService.getyqjList();
        return  componentType;
    }

    /**
     * 获取工况类型
     */
    @GetMapping("/getgkList")
    public List<ComponentConditions> getgkList() {
        List<ComponentConditions> componentConditions = zxycService.getgkList();
        return  componentConditions;
    }

}
